package com.dahong.cloud.server.domain.dto;

import com.dahong.cloud.server.domain.converter.UserCreateConverter;
import com.dahong.cloud.server.domain.entity.UserEntity;
import com.lambda.cloud.core.annotation.AutoConverter;
import com.lambda.cloud.core.shared.BaseDTO;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.Map;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 自定义转换类 @UserCreateConverter.class
 */
@SuppressFBWarnings("EI_EXPOSE_REP")
@Data
@AutoConverter(converter = UserCreateConverter.class, target = UserEntity.class)
@EqualsAndHashCode(callSuper = true)
public class UserCreateDTO extends BaseDTO<UserEntity> {
    private String username;
    private String password;
    private String nickname;
    private String avatar;
    private Map<String, String> extend;
}
